package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Taste;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface TasteDAO extends JpaDao<Taste> {

	public Taste findTasteById(Integer id) throws DataAccessException;

	public Taste findTasteById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Taste> findTasteByName(String name) throws DataAccessException;

	public Set<Taste> findTasteByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Taste> findTasteByNameContaining(String name_1) throws DataAccessException;

	public Set<Taste> findTasteByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

	public Set<Taste> findTasteByDescription(String description) throws DataAccessException;

	public Set<Taste> findTasteByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Taste> findTasteByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Taste> findTasteByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Taste findTasteByPrimaryKey(Integer id) throws DataAccessException;

	public Taste findTasteByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Taste> findTastesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Taste> findAllTastes() throws DataAccessException;

	public Set<Taste> findAllTastes(int startResult, int maxRows) throws DataAccessException;

	public Set<Taste> findTasteByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Taste> findTastesByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Taste findTasteByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Taste findTasteByPhysicalPrimaryKey(String name, int startResult, int maxRows) throws DataAccessException;
}
